package io.springboot.jpa.examples.springbootjpaexamples.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author yzc
 * @description
 * @date 2018/9/25
 */
public class JsonWebToken implements AuthenticationToken {

    public JsonWebToken(String token) {
        this.token = token;
    }

    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
